package com.hqd.ch03.v11.spel.ast;

import com.hqd.ch03.v11.spel.standard.ExpressionState;

public class RealLiteral extends SpelNodeImpl {
    private Double val;

    public RealLiteral(int startPos, int endPos, String strVal) {
        super(startPos, endPos);
        this.val = Double.parseDouble(strVal);
    }

    @Override
    public Object getValue(ExpressionState state) {
        return val;
    }
}
